<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title><?php echo C('WEB_SITE_TITLE'); if(!empty($meta_title)): ?>——<?php echo ($meta_title); endif; ?></title></title>
<meta name="keywords" content="<?php echo C('WEB_SITE_KEYWORD');?>"/>
<meta name="description" content="<?php echo C('WEB_SITE_DESCRIPTION');?>"/>

<link rel="stylesheet" type="text/css" href="/Public/Home/css/common.css"/>
<link rel="stylesheet" type="text/css" href="/Public/Home/css/index.css"/>
<link rel="stylesheet" type="text/css" href="/Public/Home/static/swiper/swiper.min.css" />
<script src="/Public/Home/static/swiper/swiper.min.js"></script>
<script src="/Public/Home/static/jquery.2.1.1.min.js"></script>
<script src="/Public/Home/js/common.js"></script>

    <link rel="stylesheet" type="text/css" href="/Public/Home/css/news.css"/>




</head>
<body class="index-page">
	<!-- 头部 -->
	
<div class="top">
    <div class="wrap">
        <div class="welcome">你好，欢迎您来到政信联众互联网信息服务有限公司！</div>
        <div class="favorite">
            <a href="javascript:void(0);" onclick="AddFavorite('我的网站',location.href)" >加入收藏</a> |
            <a href="javascript:void(0);" onclick="SetHome(this,location.href);">设为首页</a>
        </div>
    </div>
</div>
<!--logo+搜索-->
<div class="header">
    <div class="wrap">
        <div class="logo">
            <a href="http://new.zhengxin.com/"><img src="/Public/Home/images/logo.png"/></a>
        </div>
        <div class="search">
            <form method="post" action="<?php echo U('Keyword/index');?>" onsubmit="return detection()">
                <input class="text" type="text" name="keyword" placeholder="请输入搜索关键字"/>
                <input type="submit" class="btn" value="">
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    function Trim(str)
    {
        return str.replace(/(^\s*)|(\s*$)/g, "");
    }
    function detection(){
        var keyword=$("input[name='keyword']").val();
        if(Trim(keyword)==""){
               alert("请输入关键字");
            return false;
        }
    }
   $(function(){
       $(window).scroll(function(){
           $(".top").css("display","none");
            $(".header").addClass("headeer");
           $(".navigation").addClass("navigationn");

           var top = $(this).scrollTop();
           if (top==0){
               $(".top").css("display","block");
               $(".header").removeClass("headeer");
               $(".navigation").removeClass("navigationn");
           }

           if(top>646){
               $(".sc").css("display","block");
           }
       })
   })
</script>
<!--菜单-->
<div class="navigation">
    <div class="wrap">
        <ul>
            <?php $__NAV__ = M('Channel')->field(true)->where("status=1")->order("sort")->select(); if(is_array($__NAV__)): $i = 0; $__LIST__ = $__NAV__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i; if(($nav["pid"]) == "0"): ?><li >
                        <a <?php if(strstr($nav['url'],CONTROLLER_NAME)){ echo "style='background-color: #D64A4A;'"; } ?>   href="<?php echo (get_nav_url($nav["url"])); ?>" target="<?php if(($nav["target"]) == "1"): ?>_blank<?php else: ?>_self<?php endif; ?>">
                            <?php echo ($nav["title"]); ?>
                        </a>
                    </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>
<div id="body"></div>


    <div  class="banner" style="background-image: url('/Public/Home/images/banner_index.jpg') ">

    </div>















<!--<?php $__NAV__ = M('Channel')->field(true)->where("status=1")->order("sort")->select(); if(is_array($__NAV__)): $i = 0; $__LIST__ = $__NAV__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i; if(($nav["pid"]) == "0"): ?><li>
            <a href="<?php echo (get_nav_url($nav["url"])); ?>" target="<?php if(($nav["target"]) == "1"): ?>_blank<?php else: ?>_self<?php endif; ?>">
                <div class="cn same"><p><?php echo ($nav["title"]); ?></p></div>
                <div class="en same"><?php echo ($nav["english_name"]); ?></div>
            </a>
        </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>-->







	<!-- /头部 -->
	
	<!-- 主体 -->
	
    <!--正文-->
    <div class="body" id="body">
        <div class="wrap">
            <!--面包屑-->
            <div class="box-crumbs">
                <div class="crumbs">
                    您的位置 :
                    <a href="/">首页</a> &gt;&gt;
                    <a href="<?php echo U('Investment/index');?>">风险防范</a> &gt;&gt;
                    <a href="javascript:void(0);" class="on"><?php echo ($category_info["title"]); ?></a>
                </div>
                <b>风险防范</b>
                <span class="en">Investors risk prevention</span>
            </div>
        </div>
        <div class="wrap">
            <div class="lef_menu">
                <ul>
                    <?php if(is_array($category_list)): $i = 0; $__LIST__ = $category_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li>
                        <a <?php if($category_info['id'] == $val['id']): ?>class="on"<?php endif; ?>
                                 href="<?php echo U('Investment/index',array('cate_id'=>$val['id']));?>#body"><?php echo ($val["title"]); ?></a>
                    </li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <div class="page_content">
                <div class="case_list">
                    <ul id="news_data">
                        <?php if(is_array($news_list['list'])): $i = 0; $__LIST__ = $news_list['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li>
                            <div class="time"><?php echo (date("Y-m",$val["create_time"])); ?><span><?php echo (date("d",$val["create_time"])); ?></span></div>
                            <div class="text">
                                <?php echo ($val["title"]); ?> <a href="<?php echo U('Investment/detail',array('id'=>$val['id']));?>#body">【详细查看】</a>
                                <p><?php echo ($val["description"]); ?></p>
                            </div>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>

                    </ul>
                    <input type="hidden" name="p" value="<?php echo ($news_list['p']); ?>"/>
                    <div class="page">
                        <a href="javascript:void(0);" onclick="page_(-1);">&lt;&lt;上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="javascript:void(0);" onclick="page_(+1);">下一页&gt;&gt;</a>
                    </div>
                </div>

            </div>
        </div>
    </div>

	<!-- /主体 -->

	<!-- 底部 -->
	<div class="footer">
    <div class="info wrap">
        <div class="logo">
            <a href="#"><img src="<?php echo (get_cover($config_set_info["logo"],'path')); ?>" alt=""></a>
        </div>
        <div class="text">
            公司：<?php echo ($config_set_info["company"]); ?><br/>
            电话：<?php echo ($config_set_info["tel"]); ?><br/>
            地址：<?php echo ($config_set_info["address"]); ?>
        </div>
        <div class="qrcode">
            <img src="<?php echo (get_cover($config_set_info["qr_code"],'path')); ?>" alt="">
        </div>
    </div>
    <div class="friends">
        <div class="wrap">
            友情链接：<?php if(is_array($friend_data)): $i = 0; $__LIST__ = $friend_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><a href="<?php echo ($val["links"]); ?>"><?php echo ($val["title"]); ?></a>&nbsp&nbsp<?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
    <div class="extend wrap">

        © 2000-2016  四川政信联众互联网信息服务有限公司 版权所有 蜀ICP备16003766号    技术支持：<a href="http://www.cdsok.com.cn">索客（ISONIC）科技</a>
    </div>
</div>

    <script>
        function page_(i){
            var p=$("input[name='p']").val();
            p=parseInt(p)+parseInt(i);

            var cate_id="<?php echo ($category_info['id']); ?>";
            $.get("<?php echo U('Investment/page');?>",{p:p,cate_id:cate_id},function(data){
                         if(data){

                             var str="";
                             $.each(data.list,function(k,v){
                                 str+='<li>'+
                                         '<div class="time">'+ v.create_time1+'<span>'+ v.create_time2+'</span></div>'+
                                 '<div class="text">'+v.title+' <a href="/index.php?s=/Home/Investment/detail/id/'+ v.id+'.html#body">【详细查看】</a>'+
                                 '<p>'+ v.description+'</p>'+
                                 '</div>'+
                                 '</li>';
                             });

                             $("#news_data").html(str);
                             $("input[name='p']").val(data.p);
                         }
            });

        }
    </script>

	<!-- /底部 -->
</body>
</html>